package file.writer.reader;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class ReaderFile {
	private static BufferedReader br;

	public static void main(String[] args){
		File file = new File("F:\\test.txt");
		try {
			int i;
			FileReader fr = new FileReader(file);
			br = new BufferedReader(fr);
			do{
				i = br.read();
			System.out.print((char) i);
			}while(i!=-1);
		}
		catch(FileNotFoundException e){
			System.out.println("File Not Found!");
		}
		catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
